package com.scarecrow.olga.game.object.event {
	import com.scarecrow.olga.game.component.GameComponent;
	import com.scarecrow.olga.game.object.GameObject;
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Santiago.J.Elizalde
	 */
	public class GameObjectEvent extends Event {
		
		public static const COMPONENT_ADDED:String = "componentAdded";
		public static const COMPONENT_REMOVED:String = "componentRemoved";
		static public const OBJECT_RELEASED:String = "objectReleased";
		
		private var _gameObject:GameObject;
		private var _affectedComponent:GameComponent;
		
		public function GameObjectEvent(type:String, gameObject:GameObject, component:GameComponent) {
			_gameObject = gameObject;
			_affectedComponent = component;
			super(type);
		}
		
		public function get gameObject():GameObject {
			return _gameObject;
		}
		
		public function get affectedComponent():GameComponent {
			return _affectedComponent;
		}
	}
}